<div class="category_search">
	<div class="title">分类<span class="arrow_down"></span></div>
	<form class="section" method="get" action="/search">
		<div class="bold left">区域选择：</div>
		<?php $this->load->view("common/province_selector");?>
		<input type="hidden" name="search_type" value="<?php echo empty($nav) ? '' : $nav;?>"></input>
		<input type="submit" value="确定" />
	</form>
	
	<div class="right">
	<?php if ($nav == 'expert') {?>
		<a href="<?php echo site_url("/expert/create")?>">+注册行家</a>
	<?php } else if ($nav == 'story') { ?>
		<a href="<?php echo site_url("/story/create")?>">+发布事项</a>
	<?php } else {?>
		<a href="<?php echo site_url("/group/create")?>">+创建小组</a>
	<?php }?>
	</div>	
	<div class="clear"></div>	
</div>

<div class="main_categories">
	<ul>
		<?php foreach($first_level_categories as $category) {?>
		<li <?php echo $category['id'] == $current_category_id ? 'class="current"' : ''?>><a href="<?php echo site_url("/" . $nav . "/" . $category['id'])?>"><?php echo $category['name']?>></a></li>	
		<?php }?>
	</ul>
</div>